newlist: oldlist \
		 wbar.tcz.md5.txt \
		 Xlibs.tcz.md5.txt \
		 wireless-4.2.9-tinycore.tcz.md5.txt \
		 libiw.tcz.md5.txt \
		 wireless_tools.tcz.md5.txt \
		 ncurses.tcz.md5.txt \
		 readline.tcz.md5.txt \
		 openssl.tcz.md5.txt \
		 libnl.tcz.md5.txt \
		 wpa_supplicant.tcz.md5.txt \
		 wifi.tcz.md5.txt
	cat oldlist > newlist
	ls *.tcz >> newlist

wbar.tcz.md5.txt: wbar.tcz
	md5sum wbar.tcz > wbar.tcz.md5.txt
wbar.tcz: wbar/
	sudo mksquashfs wbar/ wbar.tcz

Xlibs.tcz.md5.txt: Xlibs.tcz
	md5sum Xlibs.tcz > Xlibs.tcz.md5.txt
Xlibs.tcz: Xlibs/
	sudo mksquashfs Xlibs/ Xlibs.tcz

wireless-4.2.9-tinycore.tcz.md5.txt: wireless-4.2.9-tinycore.tcz
	md5sum wireless-4.2.9-tinycore.tcz > wireless-4.2.9-tinycore.tcz.md5.txt
wireless-4.2.9-tinycore.tcz: wireless-4.2.9-tinycore/
	sudo mksquashfs wireless-4.2.9-tinycore/ wireless-4.2.9-tinycore.tcz

libiw.tcz.md5.txt: libiw.tcz
	md5sum libiw.tcz > libiw.tcz.md5.txt
libiw.tcz: libiw/
	sudo mksquashfs libiw/ libiw.tcz

wireless_tools.tcz.md5.txt: wireless_tools.tcz
	md5sum wireless_tools.tcz > wireless_tools.tcz.md5.txt
wireless_tools.tcz: wireless_tools/
	sudo mksquashfs wireless_tools/ wireless_tools.tcz

ncurses.tcz.md5.txt: ncurses.tcz
	md5sum ncurses.tcz > ncurses.tcz.md5.txt
ncurses.tcz: ncurses/
	sudo mksquashfs ncurses/ ncurses.tcz

readline.tcz.md5.txt:  readline.tcz
	md5sum readline.tcz > readline.tcz.md5.txt
readline.tcz: readline/
	sudo mksquashfs readline/ readline.tcz

openssl.tcz.md5.txt: openssl.tcz
	md5sum openssl.tcz > openssl.tcz.md5.txt
openssl.tcz: openssl/
	sudo mksquashfs openssl/ openssl.tcz

libnl.tcz.md5.txt: libnl.tcz
	md5sum libnl.tcz > libnl.tcz.md5.txt
libnl.tcz: libnl/
	sudo mksquashfs libnl/ libnl.tcz

wpa_supplicant.tcz.md5.txt: wpa_supplicant.tcz
	md5sum wpa_supplicant.tcz > wpa_supplicant.tcz.md5.txt
wpa_supplicant.tcz: wpa_supplicant/
	sudo mksquashfs wpa_supplicant/ wpa_supplicant.tcz

wifi.tcz.md5.txt: wifi.tcz
	md5sum wifi.tcz > wifi.tcz.md5.txt
wifi.tcz: wifi/
	sudo mksquashfs wifi/ wifi.tcz

clean:
	sudo rm -rf *.tcz *.md5.txt
	rm -rf newlist
